package com.test.platform.model;

import java.time.LocalDateTime;

public class PublishInfo {
    private Integer id;          // 数据库实际ID
    private Integer displayId;   // 展示用的序号
    private String owner;
    private String name;
    private String version;
    private String publisher;
    private String commitId;
    private String changeLog;
    private String status; // 未发布, 发布中, 审核中, 发布失败, 审核通过, 审核被打回
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    private String title;  // 添加 title 字段

    // Getters and Setters
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getVersion() {
        return version;
    }

    public void setVersion(String version) {
        this.version = version;
    }

    public String getPublisher() {
        return publisher;
    }

    public void setPublisher(String publisher) {
        this.publisher = publisher;
    }

    public String getChangeLog() {
        return changeLog;
    }

    public void setChangeLog(String changeLog) {  // 参数名也改为 changeLog
        this.changeLog = changeLog;
    }

    public String getCommitId() {
        return commitId;
    }

    public void setCommitId(String commitId) {
        this.commitId = commitId;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    public Integer getDisplayId() {
        return displayId;
    }
    
    public void setDisplayId(Integer displayId) {
        this.displayId = displayId;
    }

    public String getTitle() {
        return title;
    }
    
    public void setTitle(String title) {
        this.title = title;
    }
}